<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;

use App\Project;

class IndexController extends Controller
{
    public function index(){
    	// echo '这是控制器的输出<br>';
    	$pros = Project::where('status',2)->take(3)->get();
    	return view('index',['pros'=>$pros]);
    }
}
